<?php
include ("conn.php");
$sql = "SELECT * FROM type";
$result = $conn->query($sql);
$arr = array();
if ($result->num_rows > 0) {
    // 输出数据
    while($row = $result->fetch_assoc()){
    	array_push($arr,$row['cContent']);
    }
}
echo json_encode($arr);
?>